
const branchService = require('../service/branchService.js');
module.exports = {
    // 新增分院
    async add(req, res) {
        let result = await branchService.add(req.query);
        res.send(result);
    },
    // 删除分院
    async del(req, res) {
        let result = await branchService.del(req.query);
        res.send(result);
    },
    // 查询
    async select(req, res) {
        let result = await branchService.select();
        res.send(result);
    },
    // 更新分院
    async update(req, res) {
        let result = await branchService.update(req.query);
        res.send(result);
    }
}